from flask import Flask
from .init_db import db
from .init_migrate import migrate
from .init_jwt import jwt
from .init_redis import redis_db
from .init_email import mail


def register_extensions(app: Flask):
    db.init_app(app)
    migrate.init_app(app, db)
    jwt.init_app(app)
    redis_db.init_app(app)
    mail.init_app(app)